﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using DAO_ADMIN;

namespace PTTK19.DB
{
    class DBChiTietThucDonMonAn
    {
        internal static void ThemMonAn(int _MaThucDon, int _MaMonAn)
        {
            List<SqlParameter> parr = new List<SqlParameter>();
            string procname = "sp_ThemMonAnVaoThucDon";
            parr.Add(new SqlParameter("@MaThucDon", _MaThucDon));
            parr.Add(new SqlParameter("@MaMonAn", _MaMonAn));
            DataProvider.NonqueryProc(procname, parr);
        }

        internal static void BotMonAn(int _MaThucDon, int _MaMonAn)
        {
            List<SqlParameter> parr = new List<SqlParameter>();
            string procname = "sp_BotMonAnCuaThucDon";
            parr.Add(new SqlParameter("@MaThucDon", _MaThucDon));
            parr.Add(new SqlParameter("@MaMonAn", _MaMonAn));
            DataProvider.NonqueryProc(procname, parr);
        }


    }
}
